export const isProduction = process.env.NODE_ENV === 'production'
export const PHPAPI = API_URL
export const NODEAPI = NODE_API_URL
console.log('------PHPAPI-------:', PHPAPI)
const ApiConfig = {
    // demo api for test
    demoApi: { url: '/testApi', method: 'get', mutation: 'user/demo' },
    demoNodeApi: { url: NODEAPI + '/circles', method: 'get', mutation: 'demo/DEMO_NODE_API'},
    //article api
    interactivitiesNodeApi: { url: NODEAPI + '/interactivities', method: 'get', mutation: 'article/INTERACTIVITIES_NODE_API'},
    //达人接口
    masterNodeApi:{ url: NODEAPI + '/accounts/master', method: 'get', mutation: 'master/MASTER_NODE_API'},
    //用户信息接口
    personalNodeApi:{ url: NODEAPI + '/accounts/:uid', method: 'get', mutation: 'personal/PERSONAL_NODE_API'},
    //用户笔记接口
    notesNodeApi:{ url: NODEAPI + '/notes', method: 'get', mutation: 'notes/NOTES_NODE_API'},
    //问答接口
    questionsNodeApi:{ url: NODEAPI + '/questions/index', method: 'get', mutation: 'questions/QUESTIONS_NODE_API'},
    //当前用户回答接口
    myAnswersNodeApi:{ url: NODEAPI + '/questions/answers', method: 'get', mutation: 'questions/ANSWERS_NODE_API'},
    //获取互动回复列表
    postsNodeApi:{ url: NODEAPI + '/posts', method: 'get', mutation: 'posts/POSTS_NODE_API'},
    evaluationsNOdeApi:{ url: NODEAPI + '/evaluations/category', method: 'get', mutation: 'evaluations/EVALUATIONS_NODE_API'},
    //获取日报接口
    dailyNOdeApi:{ url: NODEAPI + '/articles', method: 'get', mutation: 'daily/DAILY_NODE_API'},
     //获取话题列表接口
     subjectsNOdeApi:{ url: NODEAPI + '/subjects', method: 'get', mutation: 'subjects/SUBJECTS_NODE_API'},
    //首页接口

    demoNodeApi: { url: NODEAPI + '/circles', method: 'get', mutation: 'demo/DEMO_NODE_API' },
    searchApi: { url: NODEAPI + '/search', method: 'get', mutation: 'search/SEARCH_API' },
    searchTypesApi: { url: NODEAPI + '/search/types', method: 'get', mutation: 'search/SEARCH_TYPES_API' },
    searchHotwordsApi: { url: NODEAPI + '/search/hotwords', method: 'get', mutation: 'search/SEARCH_HOTWORDS_API'},
    interactivitiesNodeApi: { url: NODEAPI + '/interactivities', method: 'get', mutation: 'article/INTERACTIVITIES_NODE_API' },
    homeAllInOne: { url: NODEAPI+ '/home/allInOne', method: 'get', mutation: 'home/HOME_ALL_IN_ONE'},
    noteCategory: { url: NODEAPI+ '/noteCategory', method: 'get', mutation: 'home/HOME_NOTE_CATEGORY'},
    getLocalNotes: { url: NODEAPI + '/localNotes/notes33', method: 'get', mutation: ''},
    //活动列表接口
    getActivities: { url: NODEAPI + '/petactivities',method: 'get', mutation: ''}
}

export default ApiConfig
